package com.sina.shop.manage.service.business;

import com.sina.shop.core.BaseService;
import com.sina.shop.core.exception.client.DataException;
import com.sina.shop.core.exception.server.CreateException;
import com.sina.shop.core.exception.server.ResourceExistsException;
import com.sina.shop.core.exception.server.UpdateException;
import com.sina.shop.domain.Groom;
import com.sina.shop.domain.business.Business;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * 段浩杰   2018-01-04-15:24
 */
public interface BusinessManageService extends BaseService {

    Business getBusinessByName(String name);

    Business getBusinessById(Long id);

    int deleteBusiness(Long id) throws DataException, UpdateException;

    int deleteBusinessTab(Long id)throws DataException, UpdateException;

    Business saveBusiness(Business business) throws CreateException, ResourceExistsException, DataException;

    Business updateBusiness(Business business) throws UpdateException, DataException;

    List<Map<String, Object>> getBusinessList(Business business, Long count[]);

    int updateBusinessGroom(Long id,Groom isGroom)throws UpdateException;

    List<Map<String, Object>> getBusinessIdAndNameList();
}
